<?php 
namespace Manager\Model;
use Think\Model\ViewModel;
/**
* liuhuanhui.cn
* ==============================================
* 版权所有 2014-2014 http://www.liuhuanhui.cn
* ==============================================
* @date: 2014-9-27
* @author: liuhuanhui
* @version:
*/
class UsersViewModel extends ViewModel
{
	public $viewFields = array(   
		'users'=>array('id','username','nickname','email','url','enable'), 
	    'auth_group_access'=>array('uid','group_id','_on'=>'users.id=auth_group_access.uid'),  
		'auth_group'=>array('title'=>'role', '_on'=>'auth_group.id=auth_group_access.group_id'),   );
}